<?php
/**
 * Author: 周斌斌 <553193368@qq.com>
 * Date: 17/3/7 PM2:23
 * 摘要:
 */

namespace app\dv1\validate;


use think\Validate;

class AuthValidate extends Validate
{
    protected $rule = [
        ['driverId', ['require'], ['请输入司机id']],
        ['driverHead', ['require'], ['请输入司机认证头像']],
        ['realName', ['require'], ['请输入司机认证真实姓名']],
        ['IdNumber', ['require'], ['请输入司机认证身份证号码']],
        ['plateNumber', ['require'], ['请输入车牌']],
        ['motorcycleType', ['require'], ['请选择车型']],// 车型与其余车型必须要输一个
        ['carType', ['require'], ['请选择车辆类型']],
        ['carColor', ['require'], ['请输入车辆颜色']],
        ['driversLicense', ['require'], ['请上传驾驶证']],
        ['drivingLicense', ['require'], ['请上传行驶证']],
        ['scDrivingLicense', ['require'], ['请上传手持行驶证']]
    ];

    protected $scene = [
        'driver' => ['driverHead', 'realName', 'IdNumber'],
        'car' => ['plateNumber', 'carType', 'motorcycleType', 'carColor'],
        'certificate' => ['driversLicense', 'drivingLicense', 'scDrivingLicense']
    ];
}